<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/decorators/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${pageTitle}</title>
<script type="text/javascript" src="${appPath}/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="${appPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${appPath}/js/jquery.cookie.js"></script>
<script type="text/javascript" src="${appPath}/js/locale/easyui-lang-zh_TW.js"></script>
<link rel="stylesheet" type="text/css" href="${appPath}/themes/metro-orange/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${appPath}/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="${appPath}/css/css.css" />
</head>
<body>
<!-- div page start -->
<div id="page">

<!-- div banner start -->

<table width="100%" border="0">
	<tr><td align="center">
			<div class="w1">
				<div class="a1">忘記密碼</div>    
				<form:form modelAttribute="forgetForm" id="forgetForm" action="${appPath}/forget.htm" method="post">
					<table width="70%" border="0" cellspacing="0" cellpadding="0" >
						<tr>     
					        <td width="30%" align="right"><label for="userName">帳號:</label>  </td>
					        <td style="padding:5px;" align="left"><form:input style="width:226px;" class="easyui-validatebox" id="userName" path="userName" required="true" /></td>
					    </tr>   
					    <tr>  
					        <td align="right"><label for="email">信箱:</label>  </td>
					        <td style="padding:5px;" align="left"><form:input style="width:226px;" class="easyui-validatebox" path="email" id="email" required="true"/> </td> 
					    </tr>   
					    <tr><td colspan="2" align="center" >
				    		<a href="#" class="easyui-linkbutton" onclick="$('#forgetForm').form('submit',{success:function(data){msg(data);}});">送出</a>
				    		<a href="${appPath}/index.htm" class="easyui-linkbutton" >返回</a>
					    </td></tr>
					</table>     
				</form:form>
			</div>
			<img src="${appPath}/images/bg4b.jpg" width="840" height="12"/>
	</td></tr>
</table>
</div>

<script>
function msg(data){
	if(eval(data)){$.messager.alert('訊息','新密碼已發信');}
	else{$.messager.alert('訊息','查不到用戶資訊','error');}
}
</script>
</body>
</html>